package com.cardbaobao.cardbabyclient.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by Jiangzx on 2017/9/26 11:29.
 */

public class QrCodeDebitFeeRateData {
    private ArrayList<FeeRate> rateList;

    public ArrayList<FeeRate> getRateList() {
        return rateList;
    }

    public void setRateList(ArrayList<FeeRate> rateList) {
        this.rateList = rateList;
    }

    public static class FeeRate implements Parcelable {

        /**
         * channel_name : 微信
         * picture_path : /uploadFiles/uploadImgs/banner/20170923/e3796f473b48473e8ab3a81bbd7289c1.png
         * low_position : 100
         * each_charge : 0.5
         * rate : 0.43
         * discount : 0.4
         * id : 35b88b62ce654a4db95837af2eb49f3b
         * channel_type : KQB010102
         * settlement : 1
         * high_position : 50000
         */

        private String channel_name;
        private String picture_path;
        private String low_position;
        private String each_charge;
        private String rate;
        private String discount;
        private String id;
        private String channel_type;
        private String settlement;
        private String high_position;

        public String getChannel_name() {
            return channel_name;
        }

        public void setChannel_name(String channel_name) {
            this.channel_name = channel_name;
        }

        public String getPicture_path() {
            return picture_path;
        }

        public void setPicture_path(String picture_path) {
            this.picture_path = picture_path;
        }

        public String getLow_position() {
            return low_position;
        }

        public void setLow_position(String low_position) {
            this.low_position = low_position;
        }

        public String getEach_charge() {
            return each_charge;
        }

        public void setEach_charge(String each_charge) {
            this.each_charge = each_charge;
        }

        public String getRate() {
            return rate;
        }

        public void setRate(String rate) {
            this.rate = rate;
        }

        public String getDiscount() {
            return discount;
        }

        public void setDiscount(String discount) {
            this.discount = discount;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getChannel_type() {
            return channel_type;
        }

        public void setChannel_type(String channel_type) {
            this.channel_type = channel_type;
        }

        public String getSettlement() {
            return settlement;
        }

        public void setSettlement(String settlement) {
            this.settlement = settlement;
        }

        public String getHigh_position() {
            return high_position;
        }

        public void setHigh_position(String high_position) {
            this.high_position = high_position;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.channel_name);
            dest.writeString(this.picture_path);
            dest.writeString(this.low_position);
            dest.writeString(this.each_charge);
            dest.writeString(this.rate);
            dest.writeString(this.discount);
            dest.writeString(this.id);
            dest.writeString(this.channel_type);
            dest.writeString(this.settlement);
            dest.writeString(this.high_position);
        }

        public FeeRate() {
        }

        protected FeeRate(Parcel in) {
            this.channel_name = in.readString();
            this.picture_path = in.readString();
            this.low_position = in.readString();
            this.each_charge = in.readString();
            this.rate = in.readString();
            this.discount = in.readString();
            this.id = in.readString();
            this.channel_type = in.readString();
            this.settlement = in.readString();
            this.high_position = in.readString();
        }

        public static final Parcelable.Creator<FeeRate> CREATOR = new Parcelable.Creator<FeeRate>() {
            @Override
            public FeeRate createFromParcel(Parcel source) {
                return new FeeRate(source);
            }

            @Override
            public FeeRate[] newArray(int size) {
                return new FeeRate[size];
            }
        };
    }
}
